import React from 'react';
import {connect} from "react-redux";
import {decrement, increment} from "../redux/actions";
import Counter from '../components/counter';

export default connect(
    state => ({count: state}), // 这个state是redux传递过来的参数，就是reducer的返回值（请看reducers.js）
    {increment, decrement} // 属性名是app里面用到的属性，随性值是我们自定义的
)(Counter);